<?php

namespace app\server\web;

/**
 *
 * Class Route
 */
class Route
{

    /**
     * 路由规则
     *
     * @var array
     */
    private static $rule = [
        '/upload' => 'upload'
    ];

    /**
     * 获取访问权限
     *
     * @param string $name
     * @return bool|mixed
     */
    public static function getRoute(string $name)
    {
        if (array_key_exists($name, self::$rule)) {
            return self::$rule[$name];
        }
        return false;
    }

}